package com.coin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coin.domain.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author 李力
 * @description 针对表【sys_user(平台用户)】的数据库操作Service
 * @createDate 2025-05-24 17:08:03
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * @Description: SysUserController
     * @Author: 李 力
     * @Date: 2025/5/28
     * @Param: current   size  mobile  fullname
     * @return: R
     */
    Page<SysUser> findByPage(Page<SysUser> page, String mobile, String fullname);

    /**
     * @Description: 新增员工
     * @Author: 李 力
     * @Date: 2025/5/28
     * @Param: sysUser
     * @return: R
     */
    boolean addUser(SysUser sysUser);

    /**
     * @Description: 修改员工
     * @Author: 李 力
     * @Date: 2025/5/28
     * @Param: sysUser
     * @return: R
     */
    boolean updateUser(SysUser sysUser);

    /**
     * @Description: 删除员工
     * @Author: 李 力
     * @Date: 2025/5/28
     * @Param: ids
     * @return: R
     */
    boolean deleteUser(Long[] ids);

    /**
     * @Description: SysUserController
     * @Author: 李 力
     * @Date: 2025/6/9
     * @Param: userId
     * @return: R
     */
    String getUserNameById(Long userId);
}
